package com.csaba.connector;

import java.util.Set;

import com.csaba.connector.BankServiceFactory.FactoryProvider;

/**
 * Simple plugin provider, where the connector plugins are listed as a Set of ServicePluginConfiguration instances.
 * Sample:<code>
 * <pre>
 * Set plugins = new HashSet();
 * plugins.add(new DummyPluginConfiguration());
 * BankServiceFactory.setProvider(new ClassEnumerationProvider(plugins));
 * </pre>
 * </code>
 * 
 * @author gyenesge
 *
 */
public class ClassEnumerationProvider implements FactoryProvider
{
	private final Set<ServicePluginConfiguration> plugins;

	public ClassEnumerationProvider( final Set<ServicePluginConfiguration> set )
	{
		this.plugins = set;
	}

	@Override
	public Set<ServicePluginConfiguration> getPlugins()
	{
		return plugins;
	}

}
